<!DOCTYPE html>
<html lang="zh-CN">
  <head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <!-- 上述3个meta标签*必须*放在最前面，任何其他内容都*必须*跟随其后！ -->
    <title>Bootstrap 101 Template</title>

    <!-- Bootstrap -->
    <link href="css/bootstrap.min.css" rel="stylesheet">
    <link rel="stylesheet" href="css/layout.css" />

    <!-- HTML5 shim and Respond.js for IE8 support of HTML5 elements and media queries -->
    <!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
    <!--[if lt IE 9]>
      <script src="https://cdn.bootcss.com/html5shiv/3.7.3/html5shiv.min.js"></script>
      <script src="https://cdn.bootcss.com/respond.js/1.4.2/respond.min.js"></script>
    <![endif]-->
  </head>
  <body>
    <!-- jQuery (necessary for Bootstrap's JavaScript plugins) -->
    <script src="https://cdn.bootcss.com/jquery/1.12.4/jquery.min.js"></script>
    <!-- Include all compiled plugins (below), or include individual files as needed -->
    <script src="js/bootstrap.min.js"></script>
    <nav class="navbar navbar-default navbar-fixed-top">
  <div class="container">
    <!-- Brand and toggle get grouped for better mobile display -->
    <div class="navbar-header">
      <button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#bs-example-navbar-collapse-1" aria-expanded="false">
        <span class="sr-only">Toggle navigation</span>
        <span class="icon-bar"></span>
        <span class="icon-bar"></span>
        <span class="icon-bar"></span>
      </button>
      <a class="navbar-brand" href="#">
      	<img src="images/logo.png" alt="logo">
      </a>
    </div>
    <!-- Collect the nav links, forms, and other content for toggling -->
    <div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1">
    	<div class="phone pull-right hidden-xs">
			<img src="images/phone.jpg">&nbsp;&nbsp;<span>资讯热线&nbsp;:</span>&nbsp;&nbsp;<span class="span2">400-133-8642</span>
		</div>
      <ul class="nav navbar-nav">
        <li class="active hidden-xs"><a href="#">网站首页<span class="sr-only">(current)</span></a></li>
        <li><a href="#">新闻资讯<span class="glyphicon glyphicon-menu-down visible-xs pull-right" aria-hidden="true"></span></a>
        		<ul class="cdir">
        				<a href=""><ol>子栏目</ol></a>
        				<a href=""><ol>子栏目</ol></a>
        				<a href=""><ol>子栏目</ol></a>
        				<a href=""><ol>子栏目</ol></a>
        		</ul>
        </li>
        <li><a href="#">课程项目<span class="glyphicon glyphicon-menu-down visible-xs pull-right" aria-hidden="true"></span></a>
        	<ul class="cdir">
        				<a href=""><ol>子栏目</ol></a>
        				<a href=""><ol>子栏目</ol></a>
        				<a href=""><ol>子栏目</ol></a>
        				<a href=""><ol>子栏目</ol></a>
        		</ul>
        </li>
        <li><a href="#">教学任务<span class="glyphicon glyphicon-menu-down visible-xs pull-right" aria-hidden="true"></span></a>
        	<ul class="cdir">
        				<a href=""><ol>子栏目</ol></a>
        				<a href=""><ol>子栏目</ol></a>
        				<a href=""><ol>子栏目</ol></a>
        				<a href=""><ol>子栏目</ol></a>
        		</ul>
        </li>
        <li><a href="#">核心团队<span class="glyphicon glyphicon-menu-down visible-xs pull-right" aria-hidden="true"></span></a>
        	<ul class="cdir">
        				<a href=""><ol>子栏目</ol></a>
        				<a href=""><ol>子栏目</ol></a>
        				<a href=""><ol>子栏目</ol></a>
        				<a href=""><ol>子栏目</ol></a>
        		</ul>
        </li>
        <li><a href="#">校友管理<span class="glyphicon glyphicon-menu-down visible-xs pull-right" aria-hidden="true"></span></a>
        	<ul class="cdir">
        				<a href=""><ol>子栏目</ol></a>
        				<a href=""><ol>子栏目</ol></a>
        				<a href=""><ol>子栏目</ol></a>
        				<a href=""><ol>子栏目</ol></a>
        		</ul>
        </li>
        <li><a href="#">关于我们<span class="glyphicon glyphicon-menu-down visible-xs pull-right" aria-hidden="true"></span></a>
        	<ul class="cdir">
        				<a href=""><ol>子栏目</ol></a>
        				<a href=""><ol>子栏目</ol></a>
        				<a href=""><ol>子栏目</ol></a>
        				<a href=""><ol>子栏目</ol></a>
        		</ul>
        </li>
      </ul>
    </div><!-- /.navbar-collapse -->
  </div><!-- /.container-fluid -->
</nav>
<!--导航条结束-->
<!--点击导航条讲当前的导航置为红色-->
<script>
	$(function(){
		$(".navbar-default .navbar-nav > li").click(function(){
			$(".navbar-default .navbar-nav > li").removeClass("active");
			$(this).addClass("active");
		});
		
		$(".navbar-default .navbar-nav > li").hover(
			function(){
				$(this).addClass("active");
			},
			function(){
				$(this).removeClass("active");
			}
			);
			$(".navbar-nav .glyphicon").click(function(){
				
				$(this).parents("li").toggleClass("dianji");
				
			});
	});
</script>
  </body>
</html>
